package xin.nick.demo;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestRequestBodyController {

    @PostMapping("/testBody")
    public String testBody(@RequestBody UserInfo userInfo, String name) {
        return "ddd--" + userInfo + "--" + name;
    }

}
